import { getTreeDataApi } from "@/api/data-term";
import { ref } from 'vue'
export default function cachesApi() {
    const treeData = ref([]);
    const getTreeData = async () => {
        let data: any = await getTreeDataApi();
        treeData.value = data;
        return treeData.value;
    }
    return {
        getTreeData,
        treeData
    };
};